package com.ruoyi.gd.todo.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 待办内容业务对象 z_todo
 *
 * @author ruoyi
 * @date 2024-11-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class zTodoBo extends BaseEntity {

    /**
     * id
     */
    private String id;

    /**
     * 任务内容
     */
    @NotBlank(message = "任务内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 签收时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qssj;

    /**
     * 签收人id
     */
    private String qsrid;

    /**
     * 签收人
     */
    private String qsr;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date wcsj;

    /**
     * 任务优先级
     */
    private Integer priority;

    /**
     * 状态
     */
    private String status;

    /**
     * 附件id
     */
    private String fjid;

    /**
     * 备注
     */
    private String bz;

    /**
     * 创建人id
     */
    private String createId;


}
